package com.ogilvy.cms.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.ogilvy.cms.service.CmsComponentService;
import com.ogilvy.cms.service.CmsDictionaryService;
import com.ogilvy.cms.service.CmsLeftTreeService;
import com.ogilvy.cms.service.CmsLogService;
import com.ogilvy.cms.service.CmsPageAuditService;
import com.ogilvy.cms.service.CmsPageCommentService;
import com.ogilvy.cms.service.CmsPageService;
import com.ogilvy.cms.service.CmsPageVersionsService;
import com.ogilvy.cms.service.CmsResourceService;
import com.ogilvy.cms.service.CmsRolePriviService;
import com.ogilvy.cms.service.CmsRoleService;
import com.ogilvy.cms.service.CmsTemplateFieldService;
import com.ogilvy.cms.service.CmsTemplateService;
import com.ogilvy.cms.service.CmsUserService;
import com.ogilvy.frame.dispatcher.BaseServiceDispatcher;


/** 
 * 业务执行分发 
 * @author cdy
 *
 */
@Repository
public class ServiceDispatcher extends BaseServiceDispatcher{
	
	@Autowired
	protected CmsUserService cmsUserService;
	public CmsUserService getCmsUserService(){
		return cmsUserService;
	}
	//数据字典
	@Autowired
	protected CmsDictionaryService cmsDictionaryService;
	public CmsDictionaryService getCmsDictionaryService(){
		return cmsDictionaryService;
	}
	//系统日志
	@Autowired
	protected CmsLogService cmsLogService;
	public CmsLogService getCmsLogService(){
		return cmsLogService;
	}
	//页面审核记录
	@Autowired
	protected CmsPageAuditService cmsPageAuditService;
	public CmsPageAuditService getCmsPageAuditService(){
		return cmsPageAuditService;
	}
	
	//页面版本
	@Autowired
	protected CmsPageVersionsService cmsPageVersionsService;
	public CmsPageVersionsService getCmsPageVersionsService(){
		return cmsPageVersionsService;
	}
	
	@Autowired
	protected CmsComponentService cmsComponentService;
	public CmsComponentService getCmsComponentService(){
		return cmsComponentService;
	}
	
	@Autowired
	protected CmsTemplateService cmsTemplateService;
	public CmsTemplateService getCmsTemplateService(){
		return cmsTemplateService;
	}
	
	@Autowired
	protected CmsTemplateFieldService cmsTemplateFieldService;
	public CmsTemplateFieldService getCmsTemplateFieldService(){
		return cmsTemplateFieldService;
	}
	//栏目（页面）方法
	@Autowired
	protected CmsPageService cmsPageService;
	public CmsPageService getCmsPageService(){
		return cmsPageService;
	}
	//资源文件方法
	@Autowired
	protected CmsResourceService cmsResourceService;
	public CmsResourceService getCmsResourceService(){
		return cmsResourceService;
	}
	
	//getCmsRoleService()
	//资源文件方法
	@Autowired
	protected CmsRoleService cmsRoleService;
	public CmsRoleService getCmsRoleService(){
		return cmsRoleService;
	}
	//getCmsRolePriviService()
	//权限方法
	@Autowired
	protected CmsRolePriviService cmsRolePriviService;
	public CmsRolePriviService getCmsRolePriviService(){
		return cmsRolePriviService;
	}
	@Autowired
	protected CmsLeftTreeService cmsLeftTreeService;
	public CmsLeftTreeService getCmsLeftTreeService(){
		return cmsLeftTreeService;
	}
	//getCmsPageCommentService()
	//资源
	@Autowired
	protected CmsPageCommentService cmsPageCommentService;
	public CmsPageCommentService getCmsPageCommentService(){
		return cmsPageCommentService;
	}
	
}
